package com.example.huaxindemo2.service.impl;

import com.example.huaxindemo2.mapper.T001Mapper;
import com.example.huaxindemo2.service.Pr10301Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.ui.Model;

import java.util.Set;

@Service
public class Pr10301ServiceImpl implements Pr10301Service {

    @Autowired
    private T001Mapper t001Mapper;

    @Override
    public void pr10301(Model model) {
        Set<String> yearSet = t001Mapper.SelectDate();
        if(yearSet==null||yearSet.size()==0){
            model.addAttribute("NULLyear","无订单月报信息");
        }else{
            model.addAttribute("yearSet",yearSet);
            System.out.println(yearSet);
        }
    }
}
